package com.example.mymusicdisplay.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.example.mymusicdisplay.data.MusicData;

import java.util.List;

/**
 * author: ts
 * created on: 2021/10/12 下午1:04
 * description:
 */
public class MusicViewModel extends ViewModel {
    private MutableLiveData<List<MusicData>> mMusicList = new MutableLiveData<>();
    private MutableLiveData<MusicData> mCurrentMusic = new MutableLiveData<>();
    private MutableLiveData<Boolean> mPlayStatus = new MutableLiveData<>();
    private MutableLiveData<Integer> mProgress = new MutableLiveData<>();

    public MusicViewModel() {
    }

    public MutableLiveData<MusicData> getCurrentMusic() {
        return mCurrentMusic;
    }

    public MutableLiveData<List<MusicData>> getMusicList() {
        return mMusicList;
    }

    public MutableLiveData<Boolean> getPlayStatus() {
        return mPlayStatus;
    }

    public MutableLiveData<Integer> getProgress() {
        return mProgress;
    }
}
